import request from '/@/utils/request';
export function memberApi() {
	return {
		index: (params) => {
			return request({
				url: '/member/user/index',
				method: 'get',
				params
			});
		},
		add: (data) => {
			return request({
				url: '/member/user/add',
				method: 'post',
				data,
			});
		},
        edit: (data) => {
			return request({
				url: '/member/user/edit',
				method: 'post',
				data,
			});
		},
        del: (data) => {
			return request({
				url: '/member/user/del',
				method: 'post',
				data,
			});
		},
		conf: (data,user_id) => {
			return request({
				url: '/member/user/conf?user_id='+user_id,
				method: 'post',
				data,
			});
		},
		setStatus: (data) => {
			return request({
				url: '/member/user/is_status',
				method: 'post',
				data,
			});
		},
		
	};
}